Fix CodeQL "Analyze (c-cpp)": suppress upload conflicting with default setup - #210
Merged
Merged
Conversation
… setup Co-authored-by: clauspruefer <17313789+clauspruefer@users.noreply.github.com>
Copilot
AI
changed the title
Fix CodeQL "Analyze (c-cpp)" job: add upload: never to prevent default-setup conflict
Fix CodeQL "Analyze (c-cpp)": suppress upload conflicting with default setup
Aug 7, 2026
Copilot created this pull request from a session on behalf of
clauspruefer
August 7, 2026 07:13
View session
clauspruefer
marked this pull request as ready for review
August 7, 2026 07:29
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a failure in the repository’s custom CodeQL workflow caused by GitHub’s default CodeQL setup being enabled, which rejects SARIF uploads from advanced/custom workflows. The workflow will still run CodeQL analysis, but will no longer attempt the conflicting upload.
Changes:
- Disable SARIF upload in the custom CodeQL workflow by setting
upload: neveron thegithub/codeql-action/analyze@v3step.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| uses: github/codeql-action/analyze@v3 | ||
| with: | ||
| category: "/language:c-cpp" | ||
| upload: never |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The custom CodeQL workflow was failing because the repo has GitHub's default CodeQL setup enabled — GitHub rejects SARIF uploads from advanced (custom) configurations when default setup is active.
Change
upload: neverto theanalyzestep in.github/workflows/codeql.ymlCodeQL analysis still runs fully; only the conflicting SARIF upload is suppressed.